<?php
namespace app\index\validate;
class User extends BaseValidate
{
  /**
   * 管理员验证
   */
  protected $rule = [
    'name'    =>  'require',
    'tel'    =>  'unique:user|require|min:11|max:11',
  ];

  protected $message = [
    'name.require'      =>  '姓名不能为空',
    'tel.unique'       =>  '电话不能重复',
    'tel.require'      =>  '电话不能为空',
    'tel.min'      =>  '电话少于11位',
    'tel.max'      =>  '电话大于11位'
  ];
  
}
?>